/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.redkalex.htdi.user;

import org.redkale.convert.json.JsonConvert;
import org.redkale.source.*;
import static org.redkale.source.FilterExpress.LIKE;

/**
 *
 * @author zhangjx
 */
public class QueryBean implements FilterBean {

    @FilterGroup("[OR]")
    @FilterColumn(express = LIKE, comment = "姓")
    protected String firstName = "";

    @FilterGroup("[OR]")
    @FilterColumn(express = LIKE, comment = "名")
    protected String lastName = "";

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    @Override
    public String toString() {
        return JsonConvert.root().convertTo(this);
    }
}
